// To parse this JSON data, do
//
//     final lzMallCategoryModel = lzMallCategoryModelFromJson(jsonString);

import 'dart:convert';

List<LzMallCategoryModel> lzMallCategoryModelFromJson(String str) => List<LzMallCategoryModel>.from(json.decode(str).map((x) => LzMallCategoryModel.fromJson(x)));

String lzMallCategoryModelToJson(List<LzMallCategoryModel> data) => json.encode(List<dynamic>.from(data.map((x) => x.toJson())));

class LzMallCategoryModel {
    LzMallCategoryModel({
        this.id,
        this.name,
        this.parentPdId,
        this.displaySeq,
        this.children,
    });

    String id;
    String name;
    String parentPdId;
    String displaySeq;
    List<LzMallCategoryModel> children;

    factory LzMallCategoryModel.fromJson(Map<String, dynamic> json) => LzMallCategoryModel(
        id: json["id"] == null ? null : json["id"],
        name: json["name"] == null ? null : json["name"],
        parentPdId: json["parentPdId"] == null ? null : json["parentPdId"],
        displaySeq: json["displaySeq"] == null ? null : json["displaySeq"],
        children: json["children"] == null ? [] : List<LzMallCategoryModel>.from(json["children"].map((x) => LzMallCategoryModel.fromJson(x))),
    );

    Map<String, dynamic> toJson() => {
        "id": id == null ? null : id,
        "name": name == null ? null : name,
        "parentPdId": parentPdId == null ? null : parentPdId,
        "displaySeq": displaySeq == null ? null : displaySeq,
        "children": children == null ? null : List<dynamic>.from(children.map((x) => x.toJson())),
    };
}
